import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import * as echarts from 'echarts'
import '../public/static/theme/chalk'
import '../public/static/theme/vintage'
import './assets/font/iconfont.css'

import './assets/css/global.less'

// 服务端与webcocket连接
import SocketService from '@/utils/socket_service'
SocketService.Instance.connect()

axios.defaults.baseURL = 'http://127.0.0.1:8888/api'

Vue.prototype.$http = axios

Vue.prototype.$echarts = echarts

Vue.prototype.$socket = SocketService.Instance

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
